/*flexbox样式*/
body {

  /*设置body为伸缩容器*/
  display: -webkit-box; /*老版本：iOS 6-, Safari 3.1-6*/
  display: -moz-box; /*老版本：Firefox 19- */
  display: -ms-flexbox; /*混合版本：IE10*/
  display: -webkit-flex; /*新版本：Chrome*/
  display: flex; /*标准规范：Opera 12.1, Firefox 20+*/

  /*伸缩项目换行*/
  -moz-box-orient: vertical;
  -webkit-box-orient: vertical;
  -moz-box-direction: normal;
  -moz-box-direction: normal;
  -moz-box-lines: multiple;
  -webkit-box-lines: multiple;
  -webkit-flex-flow: column wrap;
  -ms-flex-flow: column wrap;
  flex-flow: column wrap;
}

/*实现stick footer效果*/
.main {
  background: #f4f4f4;
  display: -moz-box;
  display: -webkit-box;
  display: -ms-flexbox;
  display: -webkit-flex;
  display: flex;

  -webkit-box-flex: 1;
  -moz-box-flex: 1;
  -ms-flex: 1;
  -webkit-flex: 1;
  flex: 1;

  -moz-box-orient: horizontal;
  -webkit-box-orient: horizontal;
  -moz-box-direction: normal;
  -webkit-box-direction: normal;
  -moz-box-lines: multiple;
  -webkit-box-lines: multiple;
  -ms-flex-flow: row wrap;
  -webkit-flex-flow: row wrap;
  flex-flow: row wrap;

  -moz-box-align: stretch;
  -webkit-box-align: stretch;
  -ms-flex-align: stretch;
  -webkit-align-items: stretch;
  align-items: stretch;
}
.header .right-op {
  position: relative;

}
.down-change-table {
  height: 2.5em;
  line-height: 2.5em;
  background: #f39801;
  color: #fff;
}
.login-out {
  background: #333;
  color: #fff;
}
.search {
  background: #dadadd;
  height: 4em;
  line-height: 4em;
  text-align: center;
  color: #666;
  margin-top: 3.6em;
  position: relative;
}

.search input {
  width: 80%;
  height: 2.5em;
  line-height: 2.5em;
  border-radius: 3px;
  background: #f4f4f4;
  border: 1px solid #f4f4f4;
  outline: none;
  padding-left: 10px;
  margin-top: 0.7em;
  -webkit-appearance: none;
}

.search input[placeholder] {
  text-align: center
}

.class-list {
  width: 6.6em;
  overflow:auto;
  margin-bottom: 5em;
}

.class-item {
  padding: 0 0 0 5px;
}

.class-name {
  display: inline-block;
  padding: 1em 0;
  width: 5em;
  line-height: 1.5em;
}

.class-item.active {
  background: #f39801;
  color: #fff;
}

.class-count {
  position: relative;
  right: 0.9em;
}

.class-count i {
  position: absolute;
  font-style: normal;
  border-radius: 50%;
  right: -23px;
  top: -10px;
  text-align: center;
  vertical-align: middle;
  z-index: 9;
  width: 20px;
  height: 20px;
  line-height: 20px;
  background: #f39801;
  color: #fff;
  font-weight: 500;

}

.class-active i {
  background: #fff !important;
  color: #f39801 !important;
}

.menu-list {
  flex: 1;
  padding-left: 1px;
  overflow:auto;
  margin-bottom: 4em;
}

.menu-item {
  background: #f4f4f4;
  box-shadow: 0px 0 3px 0px #bab4b4;
  /*min-height: 6em;*/
  margin-bottom: 10px;

  display: -moz-box;
  display: -webkit-box;
  display: -ms-flexbox;
  display: -webkit-flex;
  display: flex;
}

.menu-item .left {
  width: 8.5em;
  padding: 10px;
}

.menu-item .left img {
  width: 100%;
  height: 5.8em;
  border: 1px solid #f5f5f5;
  border-radius: 2px;
}

.menu-item .right {
  flex: 1;
}

.menu-item .right .title {
  height: 3.7em;
  line-height: 1.4em;
  padding-top: 10px;
}
.price .money {
  color: #f39801;
  font-weight: bold;
  padding-right: 5px;
  height: 2em;
  font-size: 1.2em;
  margin-top: 5px;
}
.op {
  text-align: center;
  padding-right: 1em;
  padding-bottom: 0.2em;
  position: relative;
}

.op .add img, .op .reduce img {
  border: 5px solid transparent;
  background-clip: padding-box;
  width: 22px;
  position: absolute;
}
.op .add img {
  right: 0.5em;
  top:-6px
}
.op .reduce img {
  right:4.5em;
  top: -6px;
}

.op .num {
  width: 2em;
  display: block;
  font-weight: bold;
  text-align: center;
  right:2.9em;
  top:4px;
  position: absolute;


}

.shopping-cart {
  display: -moz-box;
  display: -webkit-box;
  display: -ms-flexbox;
  display: -webkit-flex;
  display: flex;
  position: fixed;
  bottom: 0;
  width: 100%;

}

.cart-img {
  width: 6.6em;
  text-align: center;
}
.cart-round {
  background: #f39801;
  border-radius: 50%;
  width: 4.5em;
  height: 4.5em;
  margin-left: 1em;
  margin-bottom: 1em;
}
.cart-round img {
  margin-top: 0.8em;
  width: 2.5em;
}
